home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Graphics / nxyplot / Source / defs.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  1KB  |  54 lines

  1. /* collecting all the defines in one place */
  2.  
  3. #define ALLOCSIZE 2048        /* used in readData */
  4.  
  5. #define N_LINE_STYLES 6        /* number of line styles (including none) */
  6. #define N_SYMBOL_STYLES 8    /* number of symbol styles (including none) */
  7.  
  8. /*
  9. #ifndef MIN
  10. #define MIN(x,y) ((x)<(y)? (x) : (y))
  11. #endif
  12. */
  13.  
  14. /*
  15. #ifndef MAX
  16. #define MAX(x,y) ((x)>(y)? (x) : (y))
  17. #endif
  18. */
  19.  
  20. #ifndef ABS
  21. #define ABS(x) ( (x)<0? (-(x)) : (x) )
  22. #endif
  23.  
  24. #ifndef SGN
  25. #define SGN(x) ( (x)<0? -1.0 : 1.0 )
  26. #endif
  27.  
  28. #define XOFFSET 100.0        /* offsets (in pixels) of axis origin from */
  29. #define YOFFSET  50.0        /* lower left hand corner of window        */
  30.  
  31. #define SQRT3  1.73205081
  32.  
  33. enum movetypes {NOZOOM = 0, ZOOM = 1, MOVELEGEND = 2, MOVEXTITLE = 3,
  34.          MOVEYTITLE = 4, MOVEMAINTITLE = 5};
  35.  
  36. enum symboltypes {NOSYMBOL = 0, CIRCLE = 1, XMARK = 2, UPTRIANGLE = 3,
  37.             DOWNTRIANGLE = 4, DIAMOND = 5, SQUARE = 6, PLUS = 7};
  38.  
  39. enum linetypes {SOLID = 0, DASH = 1, DOT = 2, CHAINDASH = 3,
  40.           CHAINDOT = 4, NOLINE = 5};
  41.  
  42. #define DEFAULTFONTSIZE 12.0
  43.  
  44. #define DEFAULTAXISTITLEWIDTH 31.332
  45. /* The width of the default xtitle and ytitle in the default font
  46.  * (returned by [axisTitleFont getWidthOf:xtitle], e.g.)
  47.  */
  48.  
  49. #define DEFAULTMAINTITLEWIDTH 60.676
  50. /* 60.676 is the width of the default main title in the default font */
  51.  
  52. #define LINE_WIDTH_IF_PRINTING_BW 0.4
  53. #define LINE_WIDTH_IF_PRINTING_COLOR 1.0
  54.